<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		
		<script>
			// 1.定义了数组
			var names = ["why", "lilei", "hanmeimei", "lucy", "lily", "kobe", "zs"];
			
			// 2.对数组进行遍历
			
			// 注意事项:访问数组的最后一个元素 -> length - 1位置
			for(var i=0; i<names.length; i++){
				console.log(names[i]);
			}
			
		</script>
	</body>
</html>
